home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invenzioni & Inventori
/
Invenzioni and Inventori (Eclectica Publishing) (1996).ISO
/
invenzio
/
vividm.dir
/
00018_Script_18
< prev
next >
Wrap
Text File
|
1983-01-30
|
5KB
|
162 lines
on mouseDown
if the doubleclick then
global cast_m,select
paper_save
set cast_m to the castnum of sprite 39
set the puppet of sprite 48 to true
set the visible of sprite 48 to false
updatestage
go to "film"
end if
if select then exit
set list_old=[0,0,0,0,0]
set count=1
--mette i filmati presenti ad off
repeat with Loop in [32,33,40,41]
if the casttype of cast (the castnum of sprite Loop) = #digitalvideo then
if the visible of sprite Loop then
set rv=the castnum of sprite Loop
set the video of cast rv to false
--updatestage
setat list_old,count,the castnum of sprite Loop
set the castnum of sprite Loop to 86
--updatestage
set the video of cast rv to true
end if
end if
updatestage
set count = count+1
end repeat
global RESIZE,SELECT
set MYSPRITE=39
set x1=the left of sprite MYSPRITE
set y1=the top of sprite MYSPRITE
set digit=false
set cast =0
--CASO DI MOVE
if SELECT=0 and RESIZE=0 then
if the casttype of cast( the castnum of sprite MYSPRITE) = #digitalvideo then
set digit=true
--modifichiamo il cast per permettere una normale move
-- spengo il cast associato (se video)
set cast to the castnum of sprite MYSPRITE
set the visible of sprite MYSPRITE to false
--set the video of cast ( the castnum of sprite MYSPRITE) to false --spengo il video
updatestage
set the castnum of sprite MYSPRITE to 26 --mette una bitmap in modo da effettuare l'operazione
set the visible of sprite MYSPRITE to true
-- updatestage
end if
repeat while the mousedown
set the loch of sprite MYSPRITE to the mouseH
set the locv of sprite MYSPRITE to the mouseV
--spegniamo il mouse
updatestage
end repeat
--rimettiamo tutto a posto
if digit=true then
-- set the video of cast cast to true
set the video of cast cast to false
updatestage
set the castnum of sprite MYSPRITE to cast
set the locv of sprite MYSPRITE to (the locv of sprite MYSPRITE)+(the height of sprite MYSPRITE/2)
set the loch of sprite MYSPRITE to (the loch of sprite MYSPRITE)+(the width of sprite MYSPRITE/2)
set the video of cast cast to true
updatestage
end if
end if
--CASO DI RESIZE
if RESIZE then
if the casttype of cast( the castnum of sprite MYSPRITE) = #digitalvideo then
set digit=true
--modifichiamo il cast per permettere una normale resize
-- spengo il cast associato (se video)
set cast to the castnum of sprite MYSPRITE
set the visible of sprite MYSPRITE to false
-- set the video of cast ( the castnum of sprite MYSPRITE) to false --spengo il video
updatestage
set the castnum of sprite MYSPRITE to 26 --mette una bitmap in modo da effettuare l'operazione
set the visible of sprite MYSPRITE to true
-- updatestage
end if
repeat while the mousedown
set x to the mouseH
set y to the mouseV
--spegniamo il mouse
--cursor 200
--adesso possiamo allargare lo sprite
-- modifichiamo l'ampiezza dell'oggetto...
--if x>the left of sprite MYSPRITE and y > the top of sprite MYSPRITE then
spritebox MYSPRITE,x1,y1,x,y
--end if
-- if the visible of sprite MYSPRITE = 0 then the visible of sprite MYSPRITE = 1
updatestage
end repeat
--rimettiamo tutto a posto
if digit=true then
-- set the video of cast cast to true
set the video of cast cast to false
updatestage
set the castnum of sprite MYSPRITE to cast
set the locv of sprite MYSPRITE to (the locv of sprite MYSPRITE)+(the height of sprite MYSPRITE/2)
set the loch of sprite MYSPRITE to (the loch of sprite MYSPRITE)+(the width of sprite MYSPRITE/2)
set the video of cast cast to true
updatestage
end if
end if
set count =1
--mette i filmati presenti ad on
repeat with Loop in [32,33,40,41]
if getat (list_old,Count) then
set the castnum of sprite Loop to getat (list_old,Count)
end if
set count =count +1
end repeat
updatestage
cursor -1
end
--*****************************************